package cn.com.thinvent.dispatch.web.controller;

import cn.com.thinvent.dispatch.entity.enums.ReturnCodeEnum;
import cn.com.thinvent.dispatch.entity.response.ReturnModel;
import cn.com.thinvent.dispatch.service.biz.BaseBiz;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 健康监测controller
 */
@Api(description = "健康检查")
@Controller
@RequestMapping("/health")
@ResponseBody
@Slf4j
public class HealthController {

    @Autowired
    private BaseBiz baseBiz;

    @GetMapping("/health")
    @ResponseBody
    public ReturnModel health() throws Exception {
        baseBiz.testMapper();

        return new ReturnModel(200, 0, "");
    }
}


